import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/mapTest',
    name: 'mapTest',
    component: () => import(/* webpackChunkName: "mapTest" */ '../views/mapTest.vue')
  },
  {
    path: '/canvasTest',
    name: 'canvasTest',
    component: () => import(/* webpackChunkName: "canvasTest" */ '../views/canvasTest.vue')
  },
  {
    path: '/three3D',
    name: 'three3D',
    component: () => import(/* webpackChunkName: "three3D" */ '../views/three3D.vue')
  },
  {
    path: '/ocrImg',
    name: 'ocrImg',
    component: () => import(/* webpackChunkName: "ocrImg" */ '../views/ocrImg.vue')
  },
  {
    path: '/testList',
    name: 'testList',
    component: () => import(/* webpackChunkName: "testList" */ '../views/testList.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
